package com.tarena.lbs.attach.dao.mapper;
import com.tarena.lbs.attach.pojo.param.AttachUpdateParam;
import com.tarena.lbs.attach.pojo.param.PicUpdateParam;
import com.tarena.lbs.attach.pojo.po.AttachPO;
import com.tarena.lbs.attach.pojo.query.AttachQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AttachMapper{
    int batchUpdateAttachByIdOrFileUUID(List<PicUpdateParam> params);

    int insert(AttachPO attachPO);

    List<AttachPO> getAttachInfo(AttachQuery attachQuery);

    int deleteAttachByBusinessIdAndBusinessType(AttachUpdateParam attachUpdateParam);

    int deleteAttachById(Long id);

    int deleteAttachInfoByParam(AttachQuery attachQuery);

    List<AttachPO> batchGetAttachInfo(@Param("idList") List<Integer> idList, @Param("type") Integer type);
}